import { default as request, cloud } from '@/framework/utils/request'

// 新增黑白名单
export function addBlackAndWhiteList(data) {
  return request({
    url: cloud.interfacePlatform + '/rosterInfo/addRosterInfo',
    method: 'post',
    data
  })
}

// 列表
export function getList(params) {
  return request({
    url: cloud.interfacePlatform + '/rosterInfo/getPage',
    method: 'get',
    params
  })
}

// 单条删除
export function singleInfoDel(data) {
  return request({
    url: cloud.interfacePlatform + '/rosterInfo/deleteRosterInfo',
    method: 'post',
    data
  })
}

// 批量删除
export function batchInfoDel(data) {
  return request({
    url: cloud.interfacePlatform + '/rosterInfo/deleteBatchRosterInfo',
    method: 'post',
    data
  })
}

// 修改
export function updateRosterInfo(data) {
  return request({
    url: cloud.interfacePlatform + '/rosterInfo/updateRosterInfo',
    method: 'post',
    data
  })
}
